import { createRoot } from 'react-dom/client';
import ErrorBoundary from './ErrorBoundary';
import Main from './Main';

const App = () => {
    return (
        <ErrorBoundary fallback={<p>Something went wrong</p>}>
            {/* <div>hello world</div> */}
            <Main />
        </ErrorBoundary>
    )
}

const domNode = document.getElementById('app')
// 渲染你的 React 组件
const root = createRoot(domNode);
root.render(<App/>);